﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000D63 RID: 3427
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class PromoteAvatarScRsp : IMessage<PromoteAvatarScRsp>, IMessage, IEquatable<PromoteAvatarScRsp>, IDeepCloneable<PromoteAvatarScRsp>, IBufferMessage
	{
		// Token: 0x17002B79 RID: 11129
		// (get) Token: 0x060099C5 RID: 39365 RVA: 0x0019AC24 File Offset: 0x00198E24
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<PromoteAvatarScRsp> Parser
		{
			get
			{
				return PromoteAvatarScRsp._parser;
			}
		}

		// Token: 0x17002B7A RID: 11130
		// (get) Token: 0x060099C6 RID: 39366 RVA: 0x0019AC2B File Offset: 0x00198E2B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return PromoteAvatarScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002B7B RID: 11131
		// (get) Token: 0x060099C7 RID: 39367 RVA: 0x0019AC3D File Offset: 0x00198E3D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return PromoteAvatarScRsp.Descriptor;
			}
		}

		// Token: 0x060099C8 RID: 39368 RVA: 0x0019AC44 File Offset: 0x00198E44
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PromoteAvatarScRsp()
		{
		}

		// Token: 0x060099C9 RID: 39369 RVA: 0x0019AC4C File Offset: 0x00198E4C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PromoteAvatarScRsp(PromoteAvatarScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060099CA RID: 39370 RVA: 0x0019AC71 File Offset: 0x00198E71
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PromoteAvatarScRsp Clone()
		{
			return new PromoteAvatarScRsp(this);
		}

		// Token: 0x17002B7C RID: 11132
		// (get) Token: 0x060099CB RID: 39371 RVA: 0x0019AC79 File Offset: 0x00198E79
		// (set) Token: 0x060099CC RID: 39372 RVA: 0x0019AC81 File Offset: 0x00198E81
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x060099CD RID: 39373 RVA: 0x0019AC8A File Offset: 0x00198E8A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as PromoteAvatarScRsp);
		}

		// Token: 0x060099CE RID: 39374 RVA: 0x0019AC98 File Offset: 0x00198E98
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(PromoteAvatarScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060099CF RID: 39375 RVA: 0x0019ACC8 File Offset: 0x00198EC8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060099D0 RID: 39376 RVA: 0x0019AD07 File Offset: 0x00198F07
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060099D1 RID: 39377 RVA: 0x0019AD0F File Offset: 0x00198F0F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060099D2 RID: 39378 RVA: 0x0019AD18 File Offset: 0x00198F18
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060099D3 RID: 39379 RVA: 0x0019AD4C File Offset: 0x00198F4C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060099D4 RID: 39380 RVA: 0x0019AD8A File Offset: 0x00198F8A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(PromoteAvatarScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060099D5 RID: 39381 RVA: 0x0019ADBB File Offset: 0x00198FBB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060099D6 RID: 39382 RVA: 0x0019ADC4 File Offset: 0x00198FC4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 104U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04003B38 RID: 15160
		private static readonly MessageParser<PromoteAvatarScRsp> _parser = new MessageParser<PromoteAvatarScRsp>(() => new PromoteAvatarScRsp());

		// Token: 0x04003B39 RID: 15161
		private UnknownFieldSet _unknownFields;

		// Token: 0x04003B3A RID: 15162
		public const int RetcodeFieldNumber = 13;

		// Token: 0x04003B3B RID: 15163
		private uint retcode_;
	}
}
